//
//  RxDataModel.swift
//  RXSwiftTest
//
//  Created by ZhangBo on 2019/4/13.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import Foundation

extension NameSpace1 {
    struct DataModel {
        let despStr: String
        let nameStr: String
    }

    struct InfoViewModel {
        var arr = Array<DataModel>()

        init() {
            arr.append(DataModel(despStr: "first", nameStr: "Cooci"))
            arr.append(DataModel(despStr: "2", nameStr: "Gavin"))
            arr.append(DataModel(despStr: "3", nameStr: "James"))
            arr.append(DataModel(despStr: "4", nameStr: "Dean"))
            arr.append(DataModel(despStr: "5", nameStr: "Kody"))
        }
    }
}

//MARK: 方便输出打印
extension NameSpace1.DataModel: CustomStringConvertible {
    var description: String {
        return "name==\(nameStr),des==\(despStr)"
    }
}
